package com.handu.luna.core.domain.promotion;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import com.handu.luna.core.domain.BaseRepository;

public interface SecKillGroupBuyRepository extends JpaRepository<SecKillGroupBuy,Long>,BaseRepository<SecKillGroupBuy>,JpaSpecificationExecutor<SecKillGroupBuy>{
	
	@Query("select b from SecKillGroupBuy b  order by id desc  ")
	Page<SecKillGroupBuy> findAll(Pageable pageable);
}
